<?php
use yii\helpers\Html;
use common\components\helpers\Fun;

?>

<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <div class="yx-search-class">
        <a href="<?= \common\components\helpers\Fun::url('messagelog/index') ?>"
           class="yx-back-list yx-radius5">返回上级列表</a>
    </div>
    <!--/*添加按钮*/-->
    <?= $this->renderFile('@app/views/layouts/toolbar.php'); ?>
    <!--/*搜索*/-->
    <div id="search-area" class="yx-bgf7f7f7 yx-radius5 zx-mg yx-function2 yx-pr0">
        <?= Html::beginForm(Fun::url(['failedsms/index']), 'get', ['enctype' => 'multipart/form-data']) ?>
        <?= \common\components\helpers\Search::textInput('tel', null, ['label' => '电话号码', 'class' => 'search yx-width150 zx-lh24 yx-ml6']); ?>
        <?= \common\components\helpers\Search::submitButton('搜索', ['id' => 'search-handle', 'class' => "yx-search yx-radius2"]); ?>
        <?php Html::endForm() ?>
    </div>
    <!--/*表*/-->
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table5 table-striped with-check"
               data-tablesaw-mode="swipe" data-tablesaw-minimap>
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?= \Yii::t('zhtfrontend', 'ID'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '消息类型'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '接受者编号组'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '发送时间'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '状态'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '失败数组'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '短信内容'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '管理员'); ?></th>
            </tr>
            </thead>
            <?php if ($data): ?>
                <?php foreach ($data as $item): ?>
                    <tr data-id="<?= $item['id'] ?>">
                        <td><?= $item['id'] ?></td>
                        <td><?= $item['type_id'] ?></td>
                        <td><?= $item['receiver_arr'] ?></td>
                        <td><?= $item['created_at'] ?></td>
                        <td><?= $item['status'] ?></td>
                        <td><?= $item['fail_arr_sms'] ?></td>
                        <td><?= $item['content_sms'] ?></td>
                        <td><?= $item['admin'] ?></td>
                    </tr>
                <?php endforeach; ?>
            <?php endif; ?>
        </table>
        <div style="text-align: right"><?= \yii\widgets\LinkPager::widget(['pagination' => $pages]) ?></div>
    </div>
</div>












